import request from '@/utils/request'
import API from './contants'
export const getCode = phone => request({
  url: API.CODE_API + '/' + phone,
})
export const loginAsync = (phone, code) => request({
  url: API.SESSION_API,
  method: 'POST',
  data: {
    phone,
    code,
  },
})
